from .base import BaseAliPayClient
from .oauth import Oauth


class AliPayClient(BaseAliPayClient):
    def __init__(self, appid, charset="utf-8", sign_type="RSA2", private_key=None, public_key=None, encrypt_key=None,
                 ali_public_key=None):
        self.appid = appid
        self.sign_type = sign_type
        self.charset = charset
        self.private_key = private_key
        self.public_key = public_key
        self.encrypt_key = encrypt_key
        self.ali_public_key = ali_public_key
        self.version = "1.0"
        self.outh = Oauth(self)
